﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="../include/jsp/include.jsp"/>
<HTML>
<HEAD>
<TITLE>管理系统</TITLE>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<link rel="stylesheet" type="text/css" href="../include/js/components/xLayout/xLayout_css/dhtmlxlayout.css">
<link rel="stylesheet" type="text/css" href="../include/js/components/xLayout/xLayout_css/dhtmlxlayout_dhx_blue.css">
<link rel="stylesheet" type="text/css" href="../include/js/components/xWindow/xWindow_css/dhtmlxwindows.css">
<link rel="stylesheet" type="text/css" href="../include/js/components/xWindow/xWindow_css/dhtmlxwindows_dhx_blue.css">
<link rel="stylesheet" type="text/css" href="../include/js/components/xAccordion/xAccordion_css/dhtmlxaccordion_dhx_blue.css">
	
<script src="../include/js/components/comm_js/dhtmlxcommon.js"></script>
<script src="../include/js/components/xLayout/xLayout_js/dhtmlxlayout.js"></script>
<script src="../include/js/components/xWindow/xWindow_js/dhtmlxwindows.js"></script>
<script src="../include/js/components/xWindow/xWindow_js/dhtmlxwindows_sb.js"></script>
<script src="../include/js/components/xAccordion/xAccordion_js/dhtmlxaccordion.js"></script>

<script>
	var session = null;
	function openwin_max(){
		
	    var scrWidth=screen.availWidth;
	    var scrHeight=screen.availHeight;
	    window.moveTo(-4,-4);
	    window.resizeTo(scrWidth+9,scrHeight+9);
	}
    function getSession(){
        var json = {
            url:contextPath + "/server/sys/getUserSession.do",
            showMsg:false,
            async:false,
            callback:[getSessionCallBack]
        };
        AjaxTools.ajax(json);
    }
    function getSessionCallBack(json){
        session = eval("(" + json.data + ")");
    }
</script>

</HEAD>
<body style="width: 100%; height: 100%; margin: 0px; overflow: hidden;" onload="openwin_max();">
<script>
    getSession();
    //生成系统布局
	var dhxLayout = new dhtmlXLayoutObject(document.body, "3T");
		dhxLayout.cells("b").setWidth(180);
		dhxLayout.cells("a").setHeight(60);
		dhxLayout.cells("a").hideHeader();
		dhxLayout.cells("b").setText("登录用户：" + session.USER_NAME);  
		dhxLayout.cells("c").hideHeader();
		dhxLayout.cells("a").fixSize(true, true);

	//生成状态栏	
	var status    = dhxLayout.attachStatusBar();
	var statusStr = "<div style='width:29%;float:left;border:#C2D5DC 1px solid;'>";
		//statusStr +="&nbsp;&nbsp;您目前操作的模块是：<span id='status_nvg'>用户管理</span>";
		statusStr +="</div>";
		statusStr +="<div style='width:70%;text-align:right;float:right;margin-left:2px;border:#C2D5DC 1px solid;'>";
		statusStr +="版权所有：XXXXXXXXXXXX&nbsp;&nbsp;2010--2011&nbsp;";
		statusStr +="</div>";
		status.setText(statusStr);
		dhxLayout.cells("a").attachURL("top.html");
		//dhxLayout.cells("b").attachURL("left_menu.html");
		dhxLayout.cells("c").attachURL("main.html");

	//生成活动面板	
	var dhxAccord = dhxLayout.cells("b").attachAccordion();
		dhxAccord.addItem("a1", "我的工作台");
		dhxAccord.addItem("a2", "我的收藏夹");
		dhxAccord.openItem("a1");
		dhxAccord.cells("a1").attachURL("left_menu.html");
		//dhxAccord.cells("a2").attachURL("left_menu.html");

</script>
</BODY>
</HTML>